﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Reconciliation.Data
{
    public partial class Cashpoint
    {
        public static Domain.Cashpoint MapDataToDomain(Data.Cashpoint dataCashpoint)
        {
            Domain.Cashpoint domainCashpoint = new Reconciliation.Domain.Cashpoint();
            domainCashpoint.CashPointCode = dataCashpoint.CashPointCode ;
            domainCashpoint.CashPointID = dataCashpoint.CashpointID ;
            domainCashpoint.CashpointType = CashpointType.MapDataToDomain(dataCashpoint.CashpointType);
            domainCashpoint.ClientCashPointCode = dataCashpoint.ClientCashPointCode ;
            domainCashpoint.FlowType = dataCashpoint.FlowType ;
            domainCashpoint.Location = Location.MapDataToDomain(dataCashpoint.Location);
            domainCashpoint.Status = dataCashpoint.Status ;
            return domainCashpoint;
        }
    }
}
